package com.hdu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hdu.pojo.Grade;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试实体类
 * </p>
 *
 * @author xiaobai
 * @since 2024-05-21
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("exam")
public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 考试编号
     */
    @TableId(value = "eID", type = IdType.AUTO)
    private String eID;

    /**
     * 考试名称
     */
    private String examTitle;

    /**
     * 考试时间
     */
    private LocalDateTime examTime;

    /**
     * 考试年级
     */
    private String examGrade;

    /**
     * 考试类型
     */
    private String examLabel;

    /**
     * 学生成绩
     */
    @TableField(exist = false)
    private Grade grade;
}
